home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / games / strategy / empire-2.2w.lzh / Doc / Maintenance < prev    next >
Text File  |  1990-08-30  |  7KB  |  143 lines

  1.  
  2.     Amiga Empire Maintenance by David Wright
  3.  
  4. If, during a game, you should happen to have a power outage, a system
  5. failure, GURU, or you don't properly shut Empire down, it is quite likely
  6. some data will be corrupted.
  7.  
  8. This is because Empire stores a large amount of data in RAM while the server
  9. is running to increase speed. If the system just gets turned off without
  10. letting the server write the data to disk, it is possible for the data on
  11. the disk to become "confused" or corrupted.
  12.  
  13. The best way to avoid this is to make sure you ALWAYS shut down the Empire
  14. server before turning your machine off or rebooting, and be sure and wait a
  15. few secs for AmigaDOS itself to write out it's own buffers. You should also
  16. avoid running other software if you are not sure it can be trusted. It is
  17. very exasperating to have a program tromp on the input handler leaving you
  18. with no way to shut down Empire.
  19.  
  20. Of course, there is not much you can do about power failures, and this
  21. document is about recovering or correcting your data after one of these
  22. problems occurs.
  23.  
  24.  
  25. Prevention
  26.  
  27. In this case it is certainly true that an ounce of prevention is worth a
  28. pound of cure, and after the first time an irate user leaves you a message
  29. about losing an entire sessions worth of moves, you will certainly want to
  30. do what you can to prevent it from hapening in the future.
  31.  
  32. In the ideal situation you will have a system similar to mine, with a
  33. complete uninteruptable power system capable of running the host long
  34. enough during a total power outage to properly shut down the game, and
  35. some kind of power conditioner to boot (Give me a call at 216-228-1400
  36. and I will tell you the type of power system I reccomend for any Amiga
  37. system).
  38.  
  39. Of course, I understand that this is most likely NOT the environment most
  40. people have available to them, and Amiga Empire has about all the
  41. features you should need to insure maximum data integrity.
  42.  
  43. Depending on the level of protection you need, and the kind of system you
  44. run (and are running on), you can turn on various flags that will enable
  45. "flush" modes ranging from only at system shutdown or deity command (as in
  46. Empire 2.1w), to a super safe system which flushes the buffers every time
  47. a country logs out, a client shuts down, and a normal country using the
  48. flush command while they are online.
  49.  
  50. All of these flags are completely indipendant, so you can customize the way
  51. Empire works to your own needs.
  52.  
  53. If you would like the serial client to flush the buffers when a country
  54. logs out, you may use the FLUSH command line option or WorkBench tooltype
  55. (for more info on SEREmp, see the SEREmp manual). Note that this ONLY
  56. affects SEREmp if you are running it in the standalone mode (where SEREmp
  57. itself answers the call). SEREmp does not do any kind of flushing when
  58. it is used in the single call mode, as that is affected by the next flag.
  59.  
  60. If you would like Empire to flush all buffers every time a client terminates,
  61. you can set this inside Empire itself. Use the "edit flags" command to
  62. change the "Flush buffers on client termination" flag to YES. When this is
  63. enabled ANY client terminating will flush the buffers, including the
  64. local client (empire), and the Empire front-end (Empfe(when used in local
  65. mode)). There is no need to set the SEREmp flush flag if you are going to
  66. be using it in single use mode if this flag is turned on. This flag will
  67. stay set until you edit it again.
  68.  
  69. If you would like any country to be able to flush the buffers, you may use
  70. the "edit world" command to change the "Allow normal users to flush
  71. buffers" flag to YES. With this set, the flush command will show up on all
  72. active countries command list, and they may use it to write buffers to
  73. disk multiple times while they are online.
  74.  
  75.  
  76. Repairing Problems
  77.  
  78. The most common problems relate to item counts not matching the number of
  79. items actually on disk, for example, Empire thinking there are 50 ships
  80. while there are only 45 stored on disk.
  81.  
  82. You can identify these kinds of problems by using the "verify limits"
  83. command. This will go through the database files that grow during use
  84. and try to read in as many items as it thinks there are.
  85.  
  86.      You should always use this option FIRST after having a system
  87.      crash!!!
  88.  
  89.  
  90. Watch the numbers, and if it hangs up somewhere, remember what the last item
  91. displayed was. After reloading the software (if needed), use the
  92. "edit world" command to bring down the count of whatever item the system
  93. printed before crashing, and set the correct limit to that value. For
  94. example, if the system crashed while trying to read ship 3, reload Empire,
  95. and edit the world so that the "next ship" field equals 3.
  96.  
  97. In general, the first thing you should do after a crash to use the
  98. "verify all" command to check the limits as described above, and then to
  99. check all other items if the limits are OK.
  100.  
  101. You should always (at least in most cases) answer "yes" when Empire reports
  102. it found a problem. It is probobly better to let Empire fix the problem
  103. and have someone lose a single ship (whose number will appear in the log
  104. anyway, and so can be given back) than to have Empire blow up later and
  105. cost someone an entire assault, naval battle, or even totally hose the rest
  106. of your data.
  107.  
  108.     While Empire will LET you answer "no", YOU DO SO AT YOUR OWN RISK!
  109.     Because of the limitless ways that data can be munged, Empire may fail
  110.     during other tests if you fail to correct a problem it reported
  111.     earlier!
  112.  
  113. If there are a lot of errors in the data file, you can save yourself the
  114. hassle of typing in "yes" or "no" all the time by using one of the shortcut
  115. keys. You can use the "a" key to indicate "yes to this and all future
  116. questions", and the "q" key to indicate "no to this and all future
  117. questions". So, for instance, to use the verify command in a purely scanning
  118. method, and not correct ANY errors that occur, you would use type "q" at the
  119. first error that occurs. (But did I mention that this is not advised?)
  120.  
  121.     Key summary:
  122.  
  123.     y = fix this error
  124.     n = do not fix this error
  125.     a = fix this and all future errors
  126.     q = do not fix this or any future errors
  127.  
  128. Since all errors found appear on both the screen and in the log, it is very
  129. important to have the log somewhere safe, not in an unrecoverable RAM
  130. disk or on the same drive as the files you are trying to verify.
  131. And since the errors try to give you as much info as possible, you may use
  132. the log to try and rebuild the file by hand, if you don't trust the
  133. verify command to do it right.
  134.  
  135. When dealing with inter-related items, it is always better to verify a file
  136. again if a related database reported an error. For instance, if you were
  137. verifying the ship database, and it found an error relating to fleets,
  138. it would be wise to reverify the fleet database after you have corrected
  139. the ship database. One good way to do this is to use the "verify all"
  140. option, which will run ALL the verify tests. If your database is correct,
  141. you should get no errors. (This can take some time!!).
  142.  
  143.